import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
import filters from 'utils/filters'
import storage from 'utils/storage.js'
import config from 'utils/config.js'
import api from 'utils/api.js';
import utils from 'utils/utils';
import httpClient from 'utils/httpClient';
import store from 'store/index'

Vue.use(uView);
Vue.prototype.store = store
Vue.config.productionTip = false
Vue.prototype.httpClient = httpClient;
Vue.prototype.utils = utils;
Vue.prototype.storage = storage;
Vue.prototype.globalConfig = config;
Vue.prototype.api = api;

Object.keys(filters).map(v => {
    Vue.filter(v, filters[v])
})




App.mpType = 'app'
const app = new Vue({
    store,
    ...App
})
app.$mount()
